#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : bird.zhang@ximalaya.com

import argparse


def gen_pymkpasswd_parse():
    parser = argparse.ArgumentParser(description='A simple cli to gen password.')
    parser.add_argument('-l', type=int, metavar='', dest='length', default=8, help="password length", required=False)
    parser.add_argument('-d', type=int, metavar='', dest='digit_cnt', default=0, help="digit count", required=False)
    parser.add_argument('-c', type=int, metavar='', dest='lower_char_cnt', default=0, help="lower char count",
                        required=False)
    parser.add_argument('-C', type=int, metavar='', dest='upper_char_cnt', default=0, help="upper char count",
                        required=False)
    parser.add_argument('-s', type=int, metavar='', dest='special_char_cnt', default=0, help="special char count",
                        required=False)
    parser.add_argument('-D', '--debug', dest='debug', help='whether show debug info.')
    return parser
